home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Media Folders.xpl
< prev
next >
Wrap
Text File
|
2001-09-01
|
2KB
|
73 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="4"
"COUNT"="5"
"UIPATH"="System\File System\Folders\Data"
"NAME"="Media Folders"
"VERSION"="2.01"
"LANGUAGE"="VBScript"
"TEXT 1"="My Pictures"
"TEXT 2"="Media Files Root"
"TEXT 3"="My Media"
"TEXT 4"="Graphics"
"TEXT 5"="Web Graphics"
"DESCRIPTION 1"=""My Pictures" is a generic path for pictures."
"DESCRIPTION 2"=""Media Files Root" specifies the root folder for all types of media files."
"DESCRIPTION 3"=""My Media" specifies where you normally save your media files."
"DESCRIPTION 4"=""Graphics" specifies where your graphics are saved (*.BMP, *.PNG and so on)."
"DESCRIPTION 5"=""Web Graphics" specifies where you save your work that is somehow related with the Internet."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="Thanks to CptSiskoX for his help!"
Sub Plugin_Initialize
' if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\") then
s=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures")
SetUIElement 1,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@")
SetUIElement 2,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath")
SetUIElement 3,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath")
SetUIElement 4,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath")
SetUIElement 5,s
' else
' Disable
' end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures",s,1)
s=GetUIElement(2)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@",s,1)
s=GetUIElement(3)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath",s,1)
s=GetUIElement(4)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath",s,1)
s=GetUIElement(5)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath",s,1)
End Sub
Sub Plugin_Terminate
End Sub